<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <div class="container">
            <div class="boxContainer" v-for="(item,index) in colors" :key='index'>
                <div class="box" :style="{'background-color':item}">
                    <div class="color">{{item}}</div>
                </div>
            </div>
        </div>
    </div>

</body>

</html>
<script>
    const app = new Vue({
        el: "#app",
        data() {
            return {
                colors: ['#1abc9c', '#2ecc71', '#3498db', '#9b59b6', '#f39c12', '#c0392b', '#00cec9', '#6c5ce7', '#0984e3',]
            }
        },
    })

</script>